package com.zui.util;


public interface ZuiConstants {
	
	public final static String CATALOG_IOBIKE = "IOBIKE";
	
	
	public final static String SELECT_YES_NO = "SELECT_YES_NO";
	public final static String SELECT_PRODUCT_TYPE = "SELECT_PRODUCT_TYPE";
	public final static String SELECT_UOM_TYPE = "SELECT_UOM_TYPE";
	public final static String SELECT_SHIPMENT_BOX_TYPE = "SELECT_SHIPMENT_BOX_TYPE";
	public final static String SELECT_FEATURE_TYPE = "SELECT_FEATURE_TYPE";
	public final static String DOUBLE_SELECT_FEATURE = "DOUBLE_SELECT_FEATURE";
	public final static String DOUBLE_SELECT_FEATURE_JQUERY = "DOUBLE_SELECT_FEATURE_JQUERY";
	public final static String SELECT_PRODUCT_FEATURE_APPL_TYPE = "SELECT_PRODUCT_FEATURE_APPL_TYPE";
	
	public final static String CATALOG_SET = "CATALOG_SET";
	
    /** 
     * Minimum length for a decent password 
     */  
    public static final int PASSWORD_MIN_LENGTH = 10;

    /** 
     * length for a sign up confirmation code
     */  
    public static final int SIGN_UP_CONFIRMATION_CODE_LENGTH = 100;
    /** 
     * length for a sign up confirmation code
     */  
    public static final int REST_PASSWORD_TOKEN_LENGTH = 50;    
    
    //~ Static fields/initializers =============================================
	public static final String USER_INFO_IN_SESSION = "UserInfo";
	
	//Struts Local in Session
	public static final String WW_TRANS_I18N_LOCALE = "WW_TRANS_I18N_LOCALE";
	
	/**Application default local: en_US_WIN*/
	public static final String LOCALE_APPLICATION_DEFAULT = "en_US_WIN";
	
	/**Application local cookie name: request_locale*/
	public static final String LOCALE_COOKIE_NAME = "request_locale";
	/** The name of the ResourceBundle used in this application */
    public static final String BUNDLE_KEY = "ApplicationResources";

    /** The encryption algorithm key to be used for passwords */
    public static final String ENC_ALGORITHM = "algorithm";

    /** A flag to indicate if passwords should be encrypted */
    public static final String ENCRYPT_PASSWORD = "encryptPassword";

    /** File separator from System properties */
    public static final String FILE_SEP = System.getProperty("file.separator");

    /** User home from System properties */
    public static final String USER_HOME = System.getProperty("user.home") + FILE_SEP;

    /** The name of the configuration hashmap stored in application scope. */
    public static final String CONFIG = "appConfig";

    /** 
     * Session scope attribute that holds the locale set by the user. By setting this key
     * to the same one that Struts uses, we get synchronization in Struts w/o having
     * to do extra work or have two session-level variables.
     */ 
    public static final String PREFERRED_LOCALE_KEY = "org.apache.struts.action.LOCALE";

    /**
     * The name of the Administrator role, as specified in web.xml
     */
    public static final String ADMIN_ROLE = "admin";

    /**
     * The name of the User role, as specified in web.xml
     */
    public static final String USER_ROLE = "user";

    /**
     * The name of the user's role list, a request-scoped attribute
     * when adding/editing a user.
     */
    public static final String USER_ROLES = "userRoles";

    /**
     * The name of the available roles list, a request-scoped attribute
     * when adding/editing a user.
     */
    public static final String AVAILABLE_ROLES = "availableRoles";

}
